package zh.codegym.task.task04.task0420;

/* 
对三个数字进行排序
*/

import java.io.*;
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        Scanner scanner = new Scanner(System.in);

        int [] numbers = new int[3];

        for (int i = 0; i < numbers.length; i++) {
            numbers[i] = scanner.nextInt();
        }

        /**
         * 冒泡排序
         */
        for (int i = 0; i < numbers.length - 1; i++) {

            for (int j = 0; j < numbers.length - 1 - i; j++) {

                if(numbers[j] < numbers[j+1]){

                    int temp = numbers[j+1];
                    numbers[j+1] = numbers[j];
                    numbers[j] = temp;

                }

            }

        }

        for (int i = 0; i < numbers.length; i++) {
            System.out.println(numbers[i] + " ");
        }


    }
}
